#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const process = require('process');
const rootPath = process.cwd();
require('shelljs/global');
require('colors');
module.exports = function readFile (filePath) {
    return new Promise ((resolve, reject) => {
        try {
            fs.readFile(filePath, 'utf8', (err, data) =>{
                err ? reject(err) : resolve(data);
            });
        } catch (err) {
            reject(err);
        }
    })
}
